<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">项目{% if request.tracer_obj.project %}({{ request.tracer_obj.project.name }}){% endif %} <span class="caret"></span></a>
  <ul class="dropdown-menu">
  <li><a href="{% url 'project_list' %}">所有项目页面</a></li>
        <li>我创建的项目</li>
      {% for item in my %}
          <li><a href="{% url 'dashboard' item.id %}">{{ item.name }}</a></li>
      {% endfor %}
      <li role="separator" class="divider"></li>
        <li>我参与的项目</li>
        {% for item in join %}
        <li><a href="{% url 'dashboard' item.project.id %}">{{ item.project.name }}</a></li>
        {% endfor %}



  </ul>
</li>